import { defineStore } from 'pinia'

const useUIStore = defineStore('UIStore', () => {
  // 用于控制提交按钮是否可以点击
  const submitDisabled = ref(false)
  // 记录当前任务类型
  const isSimpleTask = ref(true)
  const UIOnStart = () => {
    submitDisabled.value = true
  }
  const UIOnComplete = () => {
    submitDisabled.value = false
  }
  return {
    UIOnStart,
    UIOnComplete,
    submitDisabled,
    isSimpleTask
  }
})
export default useUIStore
